﻿@model STX.Admin.Models.PagerModel
@{
    Layout = null;
}
<div class="pager"  ratio="#25">
    <div class="pagerinfo">
        <span>显示</span><select name="pagesize" class="pagesize">
                           <option value="20" @if(Model.PageSize==20){<text>selected="selected"</text>}>20</option>
                           <option value="50" @if(Model.PageSize==50){<text>selected="selected"</text>}>50</option>
                           <option value="100" @if(Model.PageSize==100){<text>selected="selected"</text>}>100</option>
                           <option value="200" @if(Model.PageSize==200){<text>selected="selected"</text>}>200</option>
                       </select>
        <span>条，共@(Model.Total)条, 共@(Model.PageCount)页</span>
    </div>
    <div class="pagerbutton">
        <ul>
            @if (Model.Page > 1)
            {
                <li class="j-first disabled"><a href="javascript:;" class="first" pg="1"><span>首页</span></a></li>
                <li class="j-prev disabled"><a href="javascript:;" class="previous" pg="@(Model.Page-1)"><span>上一页</span></a></li>
            }
            @for(var i=Model.Start;i<=Model.End;i++)
            {
                if (i == Model.Page)
                {
                    <li class="selected j-num"><a href="javascript:;" pg="@i">@i</a></li>
                }
                else
                {
                    <li class="j-num"><a href="javascript:;" pg="@i">@i</a></li>
                }
            }
            @if (Model.Page < Model.PageCount)
            {
                <li class="j-next"><a href="javascript:;" class="next" pg="@(Model.Page + 1)"><span>下一页</span></a></li>
                <li class="j-last"><a href="javascript:;" class="last" pg="@Model.PageCount"><span>末页</span></a></li>
            }
            <li class="jumpto"><input type="text" value="1" size="4" class="textInput pageindex"><input type="button" value="确定" class="goto"></li>
        </ul>
    </div>

</div>

